package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterCommentReplyDao;
import com.vf.admin.miaodong.entity.AppCommentReply;
import com.vf.admin.miaodong.service.AfterCommentReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 评论回复
 */
@Service
public class AfterCommentReplyServiceImpl implements AfterCommentReplyService {

    @Autowired
    AfterCommentReplyDao afterCommentReplyDao;

    /**
     * 添加/修改
     */
    @Override
    public void saveOrUpdate(AppCommentReply appCommentReply) {
        afterCommentReplyDao.save(appCommentReply);
    }

    /**
     * 详情
     */
    @Override
    public AppCommentReply getById(Integer id) {
        return afterCommentReplyDao.get(id);
    }

    /**
     * 查询列表
     */
    @Override
    public List<AppCommentReply> list(Map<String, Object> paramap, SplitPageBean splitPageBean) {
        return afterCommentReplyDao.list(paramap, splitPageBean);
    }

    /**
     * 更新状态(逻辑删除)
     * @param id
     * @param status
     */
    @Override
    public void updateStatus(Integer id,Integer status) {
        afterCommentReplyDao.updateStatus(id,status);
    }
}
